function edit(id){
		$.ajax({
				type : 'POST',
				url : base + '/admin/ques/type/quer',
				data : {
					"id" : id
				},
				success : function(data) {
					console.log(data)
					if (data.status == "1") {
						stem.confirm(
								"分类名：<input id='questionType' name='questionType' class='px' placeholder='分类名' value="+data.bean.questionType+"  maxlength='30'/><br/>"
										+ "创建人：<input id='author' class='px' name='author' placeholder='创建人' value="+data.bean.author+" style='margin-top:8px'  maxlength='30'/>",
								"新增分类", function() {
									if ($("#questionType").val() == "") {
										stem.info("分类名不能为空");
										return false;
									}
									if ($("#author").val() == "") {
										stem.info("创建人不能为空");
										return false;
									}
									jQuery.ajax({
										type : 'POST',
										url : base + '/admin/ques/type/edit/1',
										data : {
											"questionType" : $("#questionType").val(),
											"author" : $("#author").val(),
											"questionId":id
										},
										success : function(data) {
											if (data.status == "1") {
												window.location.reload();
												return false;
											} else {
												stem.warn(data.msg);
												return false;
											}
										}
									});
								});
						return false;
					} else {
						stem.warn(data.msg);
						return false;
					}
				}
			
		});
	};
	function addOrEdit(id){
		stem.confirm(
				"分类名：<input id='questionType' name='questionType' class='px' placeholder='分类名' value=''  maxlength='30'/><br/>"
						+ "创建人：<input id='author' class='px' name='author' placeholder='创建人' value='' style='margin-top:8px'  maxlength='30'/>",
				"新增分类", function() {
					if ($("#questionType").val() == "") {
						stem.info("分类名不能为空");
						return false;
					}
					if ($("#author").val() == "") {
						stem.info("创建人不能为空");
						return false;
					}
					jQuery.ajax({
						type : 'POST',
						url : base + '/admin/ques/type/edit/1',
						data : {
							"questionType" : $("#questionType").val(),
							"author" : $("#author").val()
						},
						success : function(data) {
							if (data.status == "1") {
								window.location.reload();
								return false;
							} else {
								stem.warn(data.msg);
								return false;
							}
						}
					});
				});
	};
	
	function del(id){
		window.location.href=base+'/admin/ques/type/edit/2?id='+id;
	}